package test_3_8;

public class three {
    public static void main(String[] args) {
        int arr[]={1,2,3,4,5,6,7};
        int Sum=sum(arr);
        System.out.println(Sum);
    }
    public static int sum(int arr[])
    {
        int sum=0;
        for(int i=0;i<arr.length;i++)
        {
            sum+=arr[i];
        }
        return sum;
    }
}
